<template>
    <div>
        我是小组件2
        <div>
            <button @click="toPage('/home/two/four')">组件4</button>
            <button @click="toPage('/home/two/five')">组件5</button>
        </div>
        <router-view></router-view>
    </div>
</template>

<script>
export default {
    methods: {
        toPage(val) {
            this.$router.push(val);
        }
    }
};
</script>

<style></style>
